
<div class="use-view-work box event-item clearfix" id="use-view-work<?php echo $work->id; ?>" >
	<div class="text-left col-xs-9 col-left">
		<div class="use-name-work"><?php echo $work->title.'  -  '.$work->locate; ?></div>
	</div>
	<div class=" text-right col-xs-3 col-right">
		<div class="col-xs-1" style="float:right">
			<img onclick="callDeleteWork(<?php echo $work->id; ?>);" src="<?php echo Yii::app()->theme->baseUrl; ?>/images/icon-del.jpg">
		</div>
		<div class="row col-xs-19">
		        <?php echo CHtml::ajaxLink('chỉnh sửa',
                Yii::app()->createUrl('/Users/profiles/updatework',array('id'=>$work->id)),
                array(
                    'type' => 'POST',
                    'dataType' => 'json',
                    'success' => 'function(data)
                    {
                       $("#use-add-work").html("");
		                   $("#use-add-work").show();
                       $("#use-add-work").html(data.view);
                    }'
                ),
                 array(
                  'class'=>'user-link-add',
                  'href' => Yii::app()->createUrl('/Users/profiles/updatework'))
                 ); ?>
		</div>
	</div>
</div>
